import { http } from './service.js'

//教师添加食谱
export const addCookBook = (formData, filePath) => {
	return http.upload('/pad/cookbook/simple' ,{
		formData: formData,
		filePath: filePath,
		name:'file'
	})
}
//查询食谱
export const getCookBook = (pageNum, pageSize) => {
	return http.request({
		url: '/pad/cookbook/simples',
		method: 'GET',
		params: {
			'pageNum': pageNum,
			'pageSize': pageSize
		}
	})
}
